.TH std::experimental::swap(std::experimental::optional) 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::experimental::swap(std::experimental::optional) \- std::experimental::swap(std::experimental::optional)

.SH Synopsis
   Defined in header <experimental/optional>
   template< class T >
   void swap( optional<T>& lhs, optional<T>& rhs )            (library fundamentals TS)
   noexcept(/* see below */);

   Overloads the std::swap algorithm for std::experimental::optional. Exchanges the
   state of lhs with that of rhs. Effectively calls lhs.swap(rhs).

.SH Parameters

   lhs, rhs - optional objects whose states to swap

.SH Return value

   \fI(none)\fP

.SH Exceptions

   noexcept specification:
   noexcept(noexcept(lhs.swap(rhs)))

.SH Example

    This section is incomplete
    Reason: no example

.SH See also

   swap exchanges the contents
        \fI(public member function)\fP

.SH Categories:
     * Noindexed pages
     * conditionally noexcept
     * Todo no example
